<template>
    <div>
      <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="inte in nuelist" :key="inte.id">
					<router-link :to="'/one/new02/'+inte.id">
						<img class="mui-media-object mui-pull-left" :src="inte.img_url">
						<div class="mui-media-body">
							<b>{{inte.title}}</b>
							<p class='mui-ellipsis'>
                                 <span>{{inte.add_time | binia}}</span>
                                   <span>点击{{inte.click}}次</span>
                            </p>
						</div>
					</router-link>
				</li>
                </ul>
    </div>
</template>
<script>
import { Toast } from 'mint-ui';


export default {
    data(){
        return{
          nuelist:[]
        }
    },
    created(){
   this.geiNsi()
    },
    methods:{
        geiNsi(){
            this.$http.get("api/getnewslist").then(rusi =>{
               //console.log(rusi);
                if(rusi.body.status==0){
                     this.nuelist=rusi.body.message;
                }else{Toast('提起吃啥')

                }
            })
        }
    }

}
</script>
<style lang="scss">
.mui-ellipsis{
    display:flex;
    justify-content: space-between;
    color:red;
}
</style>
